<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateCardNosTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('card_nos', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('card_no')->default('')->comment('卡号');
            $table->string('ext1')->default('')->comment('扩展字段');
            $table->string('ext2')->default('')->comment('扩展字段');
            $table->string('ext3')->default('')->comment('扩展字段');
            $table->string('ext4')->default('')->comment('扩展字段');
            $table->string('ext5')->default('')->comment('扩展字段');
            $table->timestamps();
            $table->softDeletes();
            $table->comment('卡号管理');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('card_nos');
    }
}
